    img {
                  width: 350px;
                  height: 150px;
                }
    body { font-family: Arial, sans-serif; margin: 2rem; background: #f4f4f4; }
    #chatbox { width: 100%; max-width: 600px; margin: auto; background: white; padding: 1rem; border-radius: 8px; box-shadow: 0 0 10px #ccc; }
    .message { margin: 0.5rem 0; }
    .user { font-weight: bold; }
    input, button { padding: 10px; margin-top: 1rem; width: calc(100% - 22px); }
    .card {
  background-image: url('images/oxford.jpg'); /* ✅ Use correct relative path */
  
}
.card {
  background-image: url('images/cambridge.jpg'); /* ✅ Use correct relative path */
 
}
.card {
  background-image: url('images/wikipeida.jpg'); /* ✅ Use correct relative path */
  
}

  .dictionary-bg {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: right;
    opacity: 1.5;
    pointer-events: none;
    z-index: 0;
  }

  /* Preloader styles */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white; /* You can change to your theme color */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
}

#preloader .logo {
  width: 120px; /* Adjust logo size */
  height: auto;
  animation: spin 3s linear infinite; /* Spinning logo */
}

#preloader p {
  margin-top: 15px;
  font-size: 18px;
  font-weight: bold;
  color: #003366; /* Navy blue */
}

/* Spin animation */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(0deg); }
}
.btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #4f46e5; /* Indigo */
  color: white;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s, transform 0.2s;
}

.btn:hover {
  background-color: #4338ca; /* Darker indigo */
  transform: scale(1.05); /* Slight zoom on hover */
}
/* Dark mode + Light mode buttons*/
#themeWrapper.light-mode {
    background-color: white !important;
    color: black !important;
}

#themeWrapper.light-mode * {
    body {
  background: #0a0a0a;
  min-height: 100vh;
  color: white;
}

/* Navbar styles */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.2rem 5%;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
  transition: all 0.4s ease;
}

.navbar.scrolled {
  padding: 0.8rem 5%;
  background: rgba(10, 10, 10, 0.95);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(45deg, #ff3366, #ff6b6b, #4834d4, #686de0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient 8s linear infinite;
  background-size: 300%;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
  transition: all 0.3s ease;
}

.nav-links a::before,
.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: linear-gradient(45deg, #ff3366, #ff6b6b, #4834d4, #686de0);
  background-size: 300%;
  transition: width 0.3s ease;
}

.nav-links a::before {
  top: -4px;
  left: 0;
}

.nav-links a::after {
  bottom: -4px;
  right: 0;
}

.nav-links a:hover::before,
.nav-links a:hover::after {
  width: 100%;
  animation: gradient 8s linear infinite;
}

/* Mobile nav toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 1001;
}

.mobile-nav-toggle .bar {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: white;
  transition: all 0.4s ease;
}

.mobile-nav-toggle .bar:nth-child(1) {
  top: 14px;
}

.mobile-nav-toggle .bar:nth-child(2) {
  top: 19px;
}

.mobile-nav-toggle .bar:nth-child(3) {
  top: 24px;
}

/* Sections */
section {
  min-height: 100vh;
  padding: 120px 5% 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.section-content {
  max-width: 1400px;
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 1;
}

.section-title {
  font-size: 8vw;
  font-weight: 800;
  margin-bottom: 2rem;
  background: linear-gradient(45deg, #ff3366, #ff6b6b, #4834d4, #686de0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient 8s linear infinite;
  background-size: 300%;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -2px;
}

.section-description {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
  opacity: 0.8;
  color: white;
}

/* Gradient animation */
@keyframes gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Responsive styles */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 80%;
    max-width: 400px;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.99), rgba(20, 20, 20, 0.99));
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: all 0.5s ease;
    padding: 2rem;
    backdrop-filter: blur(10px);
  }

  .nav-links.active {
    right: 0;
  }

  .mobile-nav-toggle {
    display: block;
  }

  .mobile-nav-toggle.active .bar:nth-child(1) {
    transform: translate(-50%, 5px) rotate(45deg);
    width: 24px;
  }

  .mobile-nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .mobile-nav-toggle.active .bar:nth-child(3) {
    transform: translate(-50%, -5px) rotate(-45deg);
    width: 24px;
  }

  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(4px);
  }

  .overlay.active {
    opacity: 1;
    visibility: visible;
  }
}

}
